using System;
using System.Collections.Generic;
using System.Text;
using VSSDKAssist.Enums;
using System.Windows.Forms;
using VSSDKAssist.Assets.Editors;

namespace VSSDKAssist.Recipes.Common.Editors
{
	/// <summary>
	/// UITypeEditor for Visual Studio context guids enum
	/// </summary>
	public class UIContextGuidEditor : ListViewEditorBase
	{
		/// <summary>
		/// Fills the values.
		/// </summary>
		protected override void FillValues()
		{
			this.Control.Items.Clear();

			foreach(string key in UIContextGuid.Values.Keys)
			{
				ListViewItem item = new ListViewItem(key);
				item.Tag = UIContextGuid.Values[key];
				this.Control.Items.Add(item);
			}
		}
	}
}
